package com.boot.modules.pay;


import cn.hutool.http.ContentType;
import cn.hutool.http.Header;
import cn.hutool.http.HttpRequest;

import java.util.HashMap;
import java.util.Map;

/**
 *
 */
public class WxPayApi {

    public static void main(String[] args) {
        Map<String, Object> map = new HashMap<>();
        String res = HttpRequest.post("https://www.baidu.com")
                .header(Header.USER_AGENT, "Hutool http")
                .form(map)
                .contentType(String.valueOf(ContentType.JSON))
                .execute().body();
        System.out.println(ContentType.JSON);
    }
}

